package controllers

import (
	"blog_gin/models"
	"github.com/gin-gonic/gin"
	"net/http"
)

func  AlbumGet(c *gin.Context) {
	//获取session
	islogin := GetSession(c)

	albums, _ := models.FindAllAlbums()
	c.HTML(http.StatusOK, "album.html", gin.H{"IsLogin": islogin, "Album":albums})
}
